package com.wang.designpattern.bridge;

public class Client {

    public static void main(String[] args) {
        Phone phone = new FoldedPhone(new Xiaomi());
        phone.open();
        phone.call();
        phone.close();
        System.out.println("********************************************");

        phone = new FoldedPhone(new Vivo());
        phone.open();
        phone.call();
        phone.close();
        System.out.println("********************************************");

        phone = new UpRightPhone(new Xiaomi());
        phone.open();
        phone.call();
        phone.close();
        System.out.println("********************************************");

        phone = new UpRightPhone(new Vivo());
        phone.open();
        phone.call();
        phone.close();
        System.out.println("********************************************");
    }
}
